package a.f.d.a;

import a.a.m;
import a.c.bb;
import a.c.e;
import a.c.k;
import a.c.v;
import a.c.w;
import a.c.x;
import a.c.y;
import a.d.s;
import a.d.u;
import a.f.c.h;
import a.f.o;
import a.i.db;
import a.i.l;

import java.util.Arrays;
import java.util.Comparator;

public class i
  implements zb
{
  private static final int a = 0;
  private static final int b = 1;
  private static final double c = 30.0D;
  private static final double d = 30.0D;
  private static final u e = new u(0.0D, 0.0D, 0.0D, 0.0D);
  private o f;
  private double g = 1.0D;
  private boolean h = true;
  private zb i;
  public static boolean j;
  
  public i(zb paramzb)
  {
    this.i = paramzb;
  }
  
  public zb a()
  {
    return this.i;
  }
  
  public void a(zb paramzb)
  {
    if (paramzb == null) {
      throw new NullPointerException();
    }
    this.i = paramzb;
  }
  
  public boolean b()
  {
    return this.h;
  }
  
  public void a(boolean paramBoolean)
  {
    this.h = paramBoolean;
  }
  
  public double c()
  {
    return this.g;
  }
  
  public void a(double paramDouble)
  {
    this.g = paramDouble;
  }
  
  private boolean a(o paramo)
  {
    boolean bool = d.R;
    k localk = paramo.c("AspectRatioComponentLayerer.GROUPING_SUPPORT");
    if (!bool) {
      if (localk == null) {
        return false;
      }
    }
    hb localhb = (hb)localk.get(paramo);
    if ((bool) || (localhb != null)) {
      if (bool) {}
    }
    return localhb.o();
  }
  
  public void a(o paramo, ac paramac, bc parambc)
  {
    boolean bool3 = d.R;
    boolean bool2 = d.Q;
    this.f = paramo;
    boolean bool1 = a(paramo);
    zb localzb = a();
    x localx1 = paramo.B();
    int k = m.a(paramo, localx1);
    if (!bool3) {
      if (k == 1)
      {
        localzb.a(paramo, paramac, parambc);
        if ((!bool3) && (!bool2)) {
          return;
        }
      }
    }
    c_[] arrayOfc_ = new c_[k];
    Object localObject1 = paramo.v();
    label171:
    do
    {
      if (!((w)localObject1).e()) {
        break;
      }
      e locale1 = ((w)localObject1).d();
      int n = localx1.getInt(locale1);
      if (bool2) {
        return;
      }
      if (!bool3) {
        if (arrayOfc_[n] == null)
        {
          arrayOfc_[n] = new c_(locale1, n);
          if (bool3) {
            continue;
          }
          if (!bool2) {
            break label171;
          }
        }
      }
      arrayOfc_[n].a(locale1);
      ((w)localObject1).f();
    } while (!bool2);
    localObject1 = new a.i.z(paramo, localx1);
    if (!bool3)
    {
      int m = 0;
      if (m < k) {}
      do
      {
        localObject2 = arrayOfc_[m];
        ((a.i.z)localObject1).c(((c_)localObject2).a());
        ((c_)localObject2).a(paramac.b());
        localzb.a(paramo, ((c_)localObject2).b(), parambc);
        m++;
        if ((!bool3) && (bool2)) {
          break label294;
        }
        if (!bool2) {
          break;
        }
        ((a.i.z)localObject1).g();
      } while (bool3);
      Arrays.sort(arrayOfc_, new d_(null));
      label294:
      b_ localb_ = new b_();
      Object localObject2 = bool1 ? paramac.b() : paramac;
      int i1 = 0;
      do
      {
        do
        {
          if (i1 >= k) {
            break;
          }
          c_ localc_ = arrayOfc_[i1];
          localb_.a(localc_, (ac)localObject2);
          i1++;
          if ((!bool3) && (bool2)) {
            return;
          }
        } while (!bool2);
      } while (bool3);
      if (bool1)
      {
        x localx2 = db.a();
        int i2 = 0;
        Object localObject3;
        do
        {
          if (i2 >= ((ac)localObject2).a()) {
            break;
          }
          if (bool2) {
            break label496;
          }
          localObject3 = ((ac)localObject2).a(i2).c().l();
          if (((w)localObject3).e())
          {
            localx2.a(((w)localObject3).d(), i2);
            ((w)localObject3).f();
          }
          for (;;)
          {
            if (!bool3) {
              if (!bool2)
              {
                if (!bool2) {
                  break;
                }
                if (bool3) {
                  continue;
                }
                i2++;
              }
            }
          }
        } while (!bool2);
        if (!bool3)
        {
          label496:
          bb localbb1 = new bb(paramo.v());
          localObject3 = (hb)paramo.c("AspectRatioComponentLayerer.GROUPING_SUPPORT").get(paramo);
          ((hb)localObject3).c();
          h localh = new h(paramo);
          bb localbb2 = a(localh);
          x localx3 = db.a();
          Object localObject4 = localbb2.l();
          Object localObject5;
          do
          {
            if (!((w)localObject4).e()) {
              break;
            }
            localObject5 = ((w)localObject4).d();
            localx3.a(localObject5, new e_((e)localObject5, localh));
            ((w)localObject4).f();
            if ((!bool3) && (bool2)) {
              return;
            }
          } while (!bool2);
          localObject4 = new e_(localh.d(), localh);
          a(arrayOfc_, localh, (e_)localObject4, localx3);
          if (!bool3)
          {
            localObject5 = localbb2.l();
            do
            {
              if (!((w)localObject5).e()) {
                break;
              }
              e locale2 = ((w)localObject5).d();
              localObject6 = (e_)localx3.get(locale2);
              ((e_)localObject6).b(localx2, localx3);
              ((w)localObject5).f();
              if (bool3) {
                break label747;
              }
              if (bool2) {
                break label746;
              }
            } while (!bool2);
            ((e_)localObject4).b(localx2, localx3);
            if (!bool3) {
              localbb1.a(new Comparator()
              {
                private final x val$node2LayerId;
                
                public int compare(Object paramAnonymousObject1, Object paramAnonymousObject2)
                {
                  return l.a(this.val$node2LayerId.getInt(paramAnonymousObject1), this.val$node2LayerId.getInt(paramAnonymousObject2));
                }
              });
            }
            label746:
            label747:
            int i3 = 0;
            int i4 = localx2.getInt(localbb1.m());
            Object localObject6 = localbb1.l();
            int i6;
            do
            {
              if (!((w)localObject6).e()) {
                break;
              }
              e locale3 = ((w)localObject6).d();
              i6 = localx2.getInt(locale3);
              if ((!bool3) && (bool2)) {
                break label853;
              }
              if (i6 != i4)
              {
                i3++;
                i4 = i6;
              }
              localx2.a(locale3, i3);
              ((w)localObject6).f();
            } while (!bool2);
            label853:
            w localw;
            if (!bool3)
            {
              int i5 = 0;
              if (i5 <= i3) {
                if (bool3) {}
              }
              while (bool3)
              {
                byte b1 = i5 < ((ac)localObject2).a() ? ((ac)localObject2).a(i5).d() : 0;
                paramac.a(b1, i5);
                i5++;
                if (!bool2) {
                  break;
                }
              }
              localw = localbb1.l();
            }
            do
            {
              if (!localw.e()) {
                break;
              }
              e locale4 = localw.d();
              i6 = localx2.getInt(locale4);
              paramac.a(i6).a(locale4);
              localw.f();
              if ((!bool3) && (bool2)) {
                break label1007;
              }
            } while (!bool2);
            if (!bool3) {
              localh.e();
            }
            label1007:
            ((hb)localObject3).b();
          }
        }
      }
    }
  }
  
  private u a(e parame)
  {
    boolean bool = d.R;
    if (parame == null) {
      return e;
    }
    k localk = this.f.c(a.f.c.i.d);
    if (!bool) {}
    u localu = localk == null ? null : u.a(localk.get(parame));
    if (!bool) {
      if (localu == null) {
        return e;
      }
    }
    return localu;
  }
  
  private bb a(h paramh)
  {
    boolean bool2 = d.R;
    boolean bool1 = d.Q;
    bb localbb1 = new bb();
    bb localbb2 = paramh.d(paramh.d());
    localbb2.j();
    w localw = localbb2.l();
    do
    {
      if (!localw.e()) {
        break;
      }
      e locale = localw.d();
      if (!bool2)
      {
        if (paramh.e(locale)) {
          localbb1.add(locale);
        }
        localw.f();
      }
    } while (!bool1);
    return localbb1;
  }
  
  private void a(c_[] paramArrayOfc_, h paramh, e_ parame_, x paramx)
  {
    boolean bool2 = d.R;
    boolean bool1 = d.Q;
    int k = 0;
    label147:
    label154:
    label213:
    do
    {
      if (k >= paramArrayOfc_.length) {
        break;
      }
      c_ localc_ = paramArrayOfc_[k];
      bb localbb = localc_.c();
      e locale1 = paramh.b(localbb.m());
      int m = 1;
      Object localObject = localbb.l();
      do
      {
        do
        {
          if (!((w)localObject).e()) {
            break label147;
          }
          e locale2 = paramh.b(((w)localObject).d());
          if (bool1) {
            break;
          }
          if ((locale1 != null) || ((bool2) || (locale2 == null)))
          {
            if ((bool2) || (locale1 != null))
            {
              if (bool2) {
                continue;
              }
              if (locale1.equals(locale2)) {}
            }
          }
          else
          {
            m = 0;
            if (bool2) {
              break label154;
            }
            if (!bool1) {
              break label147;
            }
          }
          ((w)localObject).f();
        } while (!bool1);
      } while (bool2);
      if (!bool2)
      {
        if (m != 0)
        {
          if (!bool2) {
            if (locale1 == paramh.d())
            {
              parame_.a(localc_);
              if (bool2) {
                continue;
              }
              if (!bool1) {
                break label213;
              }
            }
          }
          localObject = (e_)paramx.get(locale1);
          ((e_)localObject).a(localc_);
        }
        k++;
      }
    } while (!bool1);
  }
  
  private double b(e parame)
  {
    if (!d.R) {
      if (!this.h) {
        return 1.0D;
      }
    }
    return this.f.s(parame);
  }
  
  private double c(e parame)
  {
    if (!d.R) {
      if (!this.h) {
        return 1.0D;
      }
    }
    return this.f.t(parame);
  }
  
  private boolean a(double paramDouble1, double paramDouble2)
  {
    boolean bool = d.R;
    if (!bool) {}
    double d1 = paramDouble1 > this.g ? paramDouble1 / this.g : this.g / paramDouble1;
    if (!bool) {}
    double d2 = paramDouble2 > this.g ? paramDouble2 / this.g : this.g / paramDouble2;
    if (!bool) {}
    return d1 < d2;
  }
  
  private class b_
  {
    private double[] a = new double[i.this.f.k()];
    private double[] c = new double[i.this.f.k()];
    private double d;
    private double e;
    private int f;
    
    public b_() {}
    
    public s a()
    {
      return new s(this.e, this.d);
    }
    
    public void a(i.c_ paramc_, ac paramac)
    {
      boolean bool2 = d.R;
      boolean bool1 = d.Q;
      ac localac = paramc_.b();
      if (!bool2) {
        if (localac.a() == 0) {
          return;
        }
      }
      if (!bool2)
      {
        if (paramac.a() == 0) {
          a(localac, paramac, 0);
        }
      }
      else if (!bool1) {
        return;
      }
      double[][] arrayOfDouble = paramc_.f();
      double d1 = 0.0D;
      int i = 0;
      int j = 0;
      if (j <= paramac.a()) {}
      label158:
      label198:
      label203:
      while (bool2)
      {
        s locals = a(arrayOfDouble, paramac, j);
        if (!bool2)
        {
          if (bool1) {
            return;
          }
          if (bool2) {}
        }
        else if (locals.a == this.e)
        {
          if (bool2) {
            break label158;
          }
          if (locals.b == this.d)
          {
            i = j;
            if (!bool1) {
              continue;
            }
          }
        }
        double d2 = locals.a / locals.b;
        if (!bool2) {
          if (j != 0)
          {
            if (bool2) {
              break label203;
            }
            if (!i.this.a(d2, d1)) {
              break label198;
            }
          }
        }
        i = j;
        d1 = d2;
        j++;
        if (!bool1) {
          break;
        }
      }
      a(localac, paramac, i);
    }
    
    private s a(double[][] paramArrayOfDouble, ac paramac, int paramInt)
    {
      boolean bool2 = d.R;
      boolean bool1 = d.Q;
      double d1 = this.d;
      double d2 = this.e;
      int i = paramac.a();
      int j = 0;
      label93:
      do
      {
        if (j >= paramArrayOfDouble.length) {
          break;
        }
        int k = j + paramInt;
        do
        {
          if (i > k) {
            break;
          }
          if (bool1) {
            break label93;
          }
          if (i > 0) {
            d1 += 30.0D;
          }
          i++;
        } while (!bool1);
        if ((bool2) || (this.c[k] == 0.0D)) {
          if (bool2) {}
        }
        int m = this.a[k] == 0.0D ? 1 : 0;
        if (!bool2) {}
        double d3 = this.a[k] + paramArrayOfDouble[j][1] + (m != 0 ? 0.0D : 30.0D);
        d2 = Math.max(d2, d3);
        double d4 = paramArrayOfDouble[j][0] - this.c[k];
        if (!bool2)
        {
          if (d4 > 0.0D) {
            d1 += d4;
          }
          j++;
        }
      } while (!bool1);
      return new s(d2, d1);
    }
    
    private void a(ac paramac1, ac paramac2, int paramInt)
    {
      boolean bool2 = d.R;
      boolean bool1 = d.Q;
      int i = 0;
      label21:
      label70:
      label115:
      label247:
      do
      {
        int j;
        double d2;
        do
        {
          vb localvb1;
          vb localvb2;
          double d1;
          do
          {
            if (i >= paramac1.a()) {
              break;
            }
            break label70;
            localvb1 = paramac1.a(i);
            j = i + paramInt;
            do
            {
              if (paramac2.a() > j) {
                break label115;
              }
              paramac2.a(localvb1.d(), paramac2.a());
              if (bool2) {
                break label21;
              }
              if (bool1) {
                break;
              }
              if (this.f > 0) {
                this.d += 30.0D;
              }
              this.f += 1;
            } while (!bool1);
            localvb2 = paramac2.a(j);
            d1 = 0.0D;
          } while (bool2);
          v localv = localvb1.c().f();
          do
          {
            if (localv == null) {
              break label247;
            }
            e locale = (e)localv.c();
            d1 = Math.max(d1, i.this.c(locale));
            if (bool1) {
              break;
            }
            if (!localvb2.c().isEmpty()) {
              this.a[j] += 30.0D;
            }
            this.a[j] += i.this.b(locale);
            localvb2.a(locale);
            localv = localv.a();
          } while (!bool1);
          d2 = d1 - this.c[j];
        } while (bool2);
        if (!bool2)
        {
          if (d2 > 0.0D)
          {
            this.c[j] += d2;
            this.d += d2;
          }
          this.e = Math.max(this.e, this.a[j]);
          i++;
        }
      } while (!bool1);
    }
  }
  
  private class d_
    implements Comparator
  {
    private d_() {}
    
    public int compare(Object paramObject1, Object paramObject2)
    {
      i.c_ localc_1 = (i.c_)paramObject1;
      i.c_ localc_2 = (i.c_)paramObject2;
      return l.a(localc_2.d(), localc_1.d());
    }
    
    d_(i.0 param0)
    {
      this();
    }
  }
  
  private class c_
  {
    private bb a;
    private Object b;
    private ac c;
    private double[][] d;
    private boolean f = true;
    
    public c_(e parame, int paramInt)
    {
      this.a = new bb(parame);
      this.b = new Integer(paramInt);
    }
    
    public Object a()
    {
      return this.b;
    }
    
    public ac b()
    {
      return this.c;
    }
    
    public bb c()
    {
      return this.a;
    }
    
    public void a(ac paramac)
    {
      this.c = paramac;
      this.f = true;
    }
    
    public void a(e parame)
    {
      this.a.add(parame);
    }
    
    public double d()
    {
      boolean bool2 = d.R;
      boolean bool1 = d.Q;
      double d1 = 0.0D;
      double d2 = 0.0D;
      f();
      if (this.d != null)
      {
        int i = 0;
        do
        {
          if (i >= this.c.a()) {
            break;
          }
          if (!bool2)
          {
            if (i > 0) {
              d1 += 30.0D;
            }
            d1 += this.d[i][0];
            d2 = Math.max(d2, this.d[i][1]);
            i++;
          }
        } while (!bool1);
      }
      return d1 * d1 + d2 * d2;
    }
    
    public double[][] f()
    {
      boolean bool2 = d.R;
      boolean bool1 = d.Q;
      if (!bool2) {
        if (this.c == null) {
          return (double[][])null;
        }
      }
      if (!bool2)
      {
        if (!this.f) {
          return this.d;
        }
        this.d = new double[this.c.a()][2];
      }
      int i = 0;
      if (i < this.c.a()) {}
      for (;;)
      {
        if (!bool2)
        {
          vb localvb = this.c.a(i);
          double d1 = 0.0D;
          double d2 = 0.0D;
          if (!bool1)
          {
            v localv = localvb.c().f();
            do
            {
              if (localv == null) {
                break;
              }
              e locale = (e)localv.c();
              d1 = Math.max(d1, i.this.c(locale));
              d2 += i.this.b(locale);
              localv = localv.a();
              if (bool2) {
                break label225;
              }
              if (bool1) {
                break label223;
              }
            } while (!bool1);
            this.d[i][0] = d1;
            this.d[i][1] = (d2 + (localvb.c().size() - 1) * 30.0D);
            if (!bool2) {
              i++;
            }
            label223:
            label225:
            if (!bool1) {
              break;
            }
            if (bool2) {
              continue;
            }
            this.f = false;
          }
        }
      }
      return this.d;
    }
  }
  
  private class e_
  {
    private double[][] a;
    private int b;
    private int c;
    private e d;
    private double e;
    private double f;
    private a.c.z g;
    private h h;
    private int i;
    
    public e_(e parame, h paramh)
    {
      this.d = parame;
      this.h = paramh;
      this.i = paramh.d(parame).size();
      this.g = new a.c.z();
    }
    
    public void a(i.c_ paramc_)
    {
      this.g.add(paramc_);
    }
    
    private void a(x paramx1, x paramx2)
    {
      boolean bool2 = d.R;
      boolean bool1 = d.Q;
      this.b = 2147483647;
      this.c = 0;
      w localw = this.h.c(this.d).l();
      label161:
      do
      {
        if (!localw.e()) {
          break;
        }
        e locale = localw.d();
        if (!bool2) {
          if (this.h.e(locale))
          {
            e_ locale_ = (e_)paramx2.get(locale);
            this.b = Math.min(this.b, locale_.b);
            this.c = Math.max(this.c, locale_.c);
            if (bool2) {
              continue;
            }
            if (!bool1) {
              break label161;
            }
          }
        }
        int j = paramx1.getInt(locale);
        this.b = Math.min(this.b, j);
        this.c = Math.max(this.c, j);
        localw.f();
      } while (!bool1);
    }
    
    private void a(x paramx1, x paramx2, x paramx3)
    {
      boolean bool2 = d.R;
      boolean bool1 = d.Q;
      int j = i.this.f.k() + 1;
      this.a = new double[j][2];
      w localw = this.h.c(this.d).l();
      label373:
      do
      {
        if (!localw.e()) {
          break;
        }
        e locale = localw.d();
        if (bool1) {
          break label386;
        }
        if (!paramx2.getBool(locale))
        {
          int i2;
          if (!bool2) {
            if (this.h.e(locale))
            {
              e_ locale_ = (e_)paramx3.get(locale);
              int n = locale_.b - this.b;
              int i1 = 0;
              do
              {
                if (i1 >= locale_.c + 1 - locale_.b) {
                  break label373;
                }
                i2 = i1 + n;
                double d2 = this.a[i2][0];
                double d3 = locale_.a[i1][0];
                this.a[i2][0] = Math.max(d2, d3);
                if (bool1) {
                  break;
                }
                int i3 = this.a[i2][1] == 0.0D ? 1 : 0;
                this.a[i2][1] += locale_.f + (i3 != 0 ? 0.0D : 30.0D);
                i1++;
              } while (!bool1);
            }
          }
          int m = paramx1.getInt(locale) - this.b;
          double d1 = this.a[m][0];
          this.a[m][0] = Math.max(d1, i.this.c(locale));
          if (!bool2)
          {
            if (!bool2) {}
            i2 = this.a[m][1] == 0.0D ? 1 : 0;
            this.a[m][1] += i.this.b(locale) + (i2 != 0 ? 0.0D : 30.0D);
          }
        }
        else
        {
          localw.f();
        }
      } while (!bool1);
      label386:
      int k = 0;
      if (k < this.c + 1 - this.b) {
        this.f = Math.max(this.f, this.a[k][1]);
      }
      while (bool2)
      {
        this.e += this.a[k][0] + (k == 0 ? 0.0D : 30.0D);
        k++;
        if (!bool1) {
          break;
        }
      }
    }
    
    private void a(x paramx)
    {
      boolean bool2 = d.R;
      boolean bool1 = d.Q;
      y localy = this.g.h();
      label107:
      label109:
      do
      {
        do
        {
          if (!localy.e()) {
            return;
          }
          i.c_ localc_ = (i.c_)localy.j();
          w localw = localc_.c().l();
          do
          {
            if (!localw.e()) {
              break;
            }
            e locale = localw.d();
            paramx.a(locale, true);
            localw.f();
            if (bool2) {
              break label109;
            }
            if (bool1) {
              break label107;
            }
          } while (!bool1);
        } while (bool2);
        localy.f();
      } while (!bool1);
    }
    
    public void b(x paramx1, x paramx2)
    {
      boolean bool2 = d.R;
      boolean bool1 = d.Q;
      x localx = db.a();
      a(localx);
      a(paramx1, paramx2);
      a(paramx1, localx, paramx2);
      if (!bool2) {
        if (!this.g.isEmpty())
        {
          localObject = this.g.h();
          if (((y)localObject).e()) {}
          label195:
          label235:
          label243:
          while (bool2)
          {
            i.c_ localc_ = (i.c_)((y)localObject).j();
            int j = 0;
            double d1 = 0.0D;
            int k = this.c + 2 - this.b;
            if (bool1) {
              break label280;
            }
            int m = 0;
            do
            {
              do
              {
                if (m >= k) {
                  break label243;
                }
                s locals = a(localc_, m);
                if (bool1) {
                  break;
                }
                if (locals == null) {
                  break label243;
                }
                if (!bool2) {
                  if (locals.a <= this.f)
                  {
                    if (bool2) {
                      break label195;
                    }
                    if (locals.b <= this.e)
                    {
                      j = m;
                      if (bool2) {
                        break label266;
                      }
                      if (!bool1) {
                        break label243;
                      }
                    }
                  }
                }
                double d2 = locals.a / locals.b;
                if (!bool2) {
                  if (m != 0)
                  {
                    if (bool2) {
                      continue;
                    }
                    if (!i.this.a(d2, d1)) {
                      break label235;
                    }
                  }
                }
                j = m;
                d1 = d2;
                m++;
              } while (!bool1);
              a(localc_, j, paramx1);
              ((y)localObject).f();
            } while (bool2);
            if (!bool1) {
              break;
            }
          }
          label266:
          a(paramx1, paramx2);
        }
      }
      label280:
      Object localObject = i.this.a(this.d);
      this.f += ((u)localObject).c + ((u)localObject).e;
      this.e += ((u)localObject).b + ((u)localObject).d;
      this.a[0][0] += ((u)localObject).b;
      this.a[(this.c - this.b)][0] += ((u)localObject).d;
    }
    
    private void a(i.c_ paramc_, int paramInt, x paramx)
    {
      boolean bool2 = d.R;
      boolean bool1 = d.Q;
      int j = this.c - this.b;
      double[][] arrayOfDouble = paramc_.f();
      int k = 0;
      do
      {
        if (k >= arrayOfDouble.length) {
          break;
        }
        m = k + paramInt;
        if (!bool2) {}
        int n = this.a[m][1] == 0.0D ? 1 : 0;
        this.a[m][1] += arrayOfDouble[k][1] + (n != 0 ? 0.0D : 30.0D);
        this.f = Math.max(this.f, this.a[m][1]);
        double d1 = arrayOfDouble[k][0] - this.a[m][0];
        if (!bool2) {
          if (d1 > 0.0D)
          {
            this.e += d1;
            this.a[m][0] += d1;
          }
        }
        if (!bool2)
        {
          if (m > j)
          {
            this.e += 30.0D;
            this.c += 1;
            j++;
          }
          k++;
        }
      } while (!bool1);
      ac localac = paramc_.b();
      int m = 0;
      do
      {
        if (m >= localac.a()) {
          break;
        }
        vb localvb = localac.a(m);
        w localw = localvb.c().l();
        if (localw.e())
        {
          paramx.a(localw.d(), this.b + paramInt + m);
          localw.f();
        }
        for (;;)
        {
          if (!bool2) {
            if (!bool1)
            {
              if (!bool1) {
                break;
              }
              if (bool2) {
                continue;
              }
              m++;
            }
          }
        }
      } while (!bool1);
    }
    
    private s a(i.c_ paramc_, int paramInt)
    {
      boolean bool2 = d.R;
      boolean bool1 = d.Q;
      int j = this.c - this.b;
      double d1 = this.e;
      double d2 = this.f;
      double[][] arrayOfDouble = paramc_.f();
      int k = 0;
      do
      {
        if (k >= arrayOfDouble.length) {
          break;
        }
        int m = k + paramInt;
        if (!bool2) {
          if (m >= this.a.length) {
            return null;
          }
        }
        if (!bool2) {}
        int n = this.a[m][1] == 0.0D ? 1 : 0;
        if (!bool2) {}
        double d3 = this.a[m][1] + arrayOfDouble[k][1] + (n != 0 ? 0.0D : 30.0D);
        d2 = Math.max(d2, d3);
        double d4 = arrayOfDouble[k][0] - this.a[m][0];
        if (!bool2) {
          if (d4 > 0.0D) {
            d1 += d4;
          }
        }
        if (!bool2)
        {
          if (m > j)
          {
            d1 += 30.0D;
            j++;
          }
          k++;
        }
      } while (!bool1);
      return new s(d2, d1);
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.d.a.i

 * JD-Core Version:    0.7.0.1

 */